package com.southminority.ethnic.mapper.language;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.southminority.ethnic.pojo.MinorityLanguageSentence;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
* @author ASHTR
* @description 针对表【minority_language_sentence(语言数据库-句子)】的数据库操作Mapper
* @createDate 2025-08-29 00:33:49
* @Entity com.southminority.ethnic.pojo.MinorityLanguageSentence
*/
public interface MinorityLanguageSentenceMapper extends BaseMapper<MinorityLanguageSentence> {
    Page<MinorityLanguageSentence> selectSpeechWithTagCmPage(
            IPage<MinorityLanguageSentence> page,
            @Param("key") String key,
            @Param("minorityIds") List<Integer> minorityIds
    );
    List<MinorityLanguageSentence> selectSpeechWithTagSonFromList(@Param("list") List<MinorityLanguageSentence> list,@Param("minorityIds") List<Integer> minorityIds);
    @Select("select * from minority_language_sentence where id = #{id} for update")
    MinorityLanguageSentence selectByIdForUpdate(Integer id);
}




